package com.shine.app.commons;

import java.text.DecimalFormat;

public class IntegerUtils {

	public static int toInt(Double input) {
		int date = 0;
		date = Integer.parseInt(new java.text.DecimalFormat("0").format(input));
		return date;
	}

	public static String toPercent(Double input) {
		String result = "";
		DecimalFormat format = new DecimalFormat("##%");
		result = format.format(input / 100);
		return result;
	}

	public static int toInt(String input) {
		int result = 0;
		result = Integer.parseInt(input);
		return result;
	}

}
